﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="LotteryVote.Login"
    Culture="auto" meta:resourcekey="PageResource1" UICulture="auto" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Login</title>
    <script src="JS/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="JS/jquery-ui-1.8.18.custom.min.js" type="text/javascript"></script>
    <link href="UI/start/jquery-ui-1.8.18.custom.css" rel="stylesheet" type="text/css" />
    <link href="Style/login.css" rel="stylesheet" type="text/css" />
    <script src="JS/comm.js" type="text/javascript"></script>
    <style type="text/css">
        thead td
        {
            height: 50px;
            font-size: 20px;
        }
    </style>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#<%=ddl_language.ClientID%>").bind("change", function () {
                var langStr = $(this).children('option:selected').val();
                setCookie("Language", langStr, DateAdd("m", 1, new Date()));
                reloadPage();
            });

        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <center>
        <table cellpadding="0" cellspacing="0" style="height: 290px; width: 430px; border: 1;
            border: solid 1px #D2D3D5; top: 30%; left: 32%; position: absolute">
            <thead>
                <tr>
                    <td style="width: 50px; background: #D2D3D5; border-bottom: solid 4px #949599; text-align: left">
                        <span style="margin-left: 30px">Logo</span>
                        <asp:Label ID="lbl_welcome" runat="server" Text="<%$ Resources: WelcomeString%>"></asp:Label>
                    </td>
                </tr>
            </thead>
            <tr>
                <td style="height: 227px">
                    <table class="innerBox" style="font-weight: bold; margin-left: 96px">
                        <tr>
                            <td style="height: 30px;">
                                <asp:Label ID="lbl_userName" runat="server" Text="<%$ Resources: UserNameLabel%>"></asp:Label>:
                            </td>
                            <td style="text-align: left">
                                <asp:TextBox ID="txt_userName" runat="server" meta:resourcekey="txt_userNameResource1"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lbl_pwd" runat="server" Text="<%$ Resources: PasswordLabel%>"></asp:Label>:
                            </td>
                            <td>
                                <asp:TextBox ID="txt_pwd" runat="server" TextMode="Password" meta:resourcekey="txt_pwdResource1"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="lbl_language" runat="server" Text="<%$ Resources: LanguageLabel%>"></asp:Label>:
                            </td>
                            <td>
                                <asp:DropDownList ID="ddl_language" runat="server" meta:resourcekey="ddl_languageResource1">
                                    <asp:ListItem Value="zh" meta:resourcekey="ListItemResource1">中文</asp:ListItem>
                                    <asp:ListItem Value="vi" meta:resourcekey="ListItemResource2">TiengViet</asp:ListItem>
                                    <asp:ListItem Value="en" meta:resourcekey="ListItemResource3">English</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="text-align: right; height: 65px;">
                                <asp:Button ID="btn_login" runat="server" Text="Login" meta:resourcekey="btn_loginResource1"
                                    OnClick="btn_login_Click1" />
                                <input type="reset" runat="server" value="<%$ Resources: btn_resetResource%>" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="height: 13px; background: #D2D3D5">
                </td>
            </tr>
        </table>
    </center>
    </form>
</body>
</html>
